package com.aspose.cells;

public class PivotFilter {
   int a;
   int b;
   int c;
   int d;
   int e = -1;
   AutoFilter f;
   String g;
   String h;
   int i = -1;
   String j;

   PivotFilter(Worksheet sheet) {
      this.f = new AutoFilter(sheet, this);
      this.f.setRange("A1");
   }

   public AutoFilter getAutoFilter() {
      return this.f;
   }

   public int getFilterType() {
      return this.b;
   }

   public int getFieldIndex() {
      return this.a;
   }

   public String getValue1() {
      AutoFilter var1 = this.getAutoFilter();
      if (var1 != null) {
         FilterColumnCollection var2 = var1.e;
         FilterColumn var3 = var2.get(0);
         switch(var3.getFilterType()) {
         case 1:
            CustomFilterCollection var5 = (CustomFilterCollection)var3.getFilter();
            CustomFilter var6 = var5.get(0);
            return com.aspose.cells.b.a.zr.a(var6.getCriteria());
         case 5:
            Top10Filter var4 = (Top10Filter)var3.getFilter();
            return zase.y(var4.getItems());
         default:
            return this.g;
         }
      } else {
         return this.g;
      }
   }

   public void setValue1(String value) {
      AutoFilter var2 = this.getAutoFilter();
      if (var2 != null) {
         FilterColumnCollection var3 = var2.e;
         FilterColumn var4 = var3.get(0);
         switch(var4.getFilterType()) {
         case 1:
            CustomFilterCollection var6 = (CustomFilterCollection)var4.getFilter();
            CustomFilter var7 = var6.get(0);
            var7.setCriteria(value);
            break;
         case 5:
            Top10Filter var5 = (Top10Filter)var4.getFilter();
            var5.setItems(zase.C(value));
            break;
         default:
            this.g = value;
         }
      }

      this.g = value;
   }

   public String getValue2() {
      AutoFilter var1 = this.getAutoFilter();
      if (var1 != null) {
         FilterColumnCollection var2 = var1.e;
         FilterColumn var3 = var2.get(0);
         switch(var3.getFilterType()) {
         case 1:
            CustomFilterCollection var4 = (CustomFilterCollection)var3.getFilter();
            if (var4.getCount() > 1) {
               CustomFilter var5 = var4.get(1);
               return com.aspose.cells.b.a.zr.a(var5.getCriteria());
            }

            return this.h;
         default:
            return this.h;
         }
      } else {
         return this.h;
      }
   }

   public void setValue2(String value) {
      AutoFilter var2 = this.getAutoFilter();
      if (var2 != null) {
         FilterColumnCollection var3 = var2.e;
         FilterColumn var4 = var3.get(0);
         switch(var4.getFilterType()) {
         case 1:
            CustomFilterCollection var6 = (CustomFilterCollection)var4.getFilter();
            if (var6.getCount() > 1) {
               CustomFilter var7 = var6.get(1);
               var7.setCriteria(value);
            } else {
               this.h = value;
            }
            break;
         case 5:
            Top10Filter var5 = (Top10Filter)var4.getFilter();
            var5.setItems(zase.C(value));
            break;
         default:
            this.h = value;
         }
      }

      this.h = value;
   }

   public int getMeasureFldIndex() {
      return this.d;
   }

   public void setMeasureFldIndex(int value) {
      this.d = value;
   }

   public int getMemberPropertyFieldIndex() {
      return this.i;
   }

   public void setMemberPropertyFieldIndex(int value) {
      this.i = value;
   }

   public String getName() {
      return this.j;
   }

   public void setName(String value) {
      this.j = value;
   }

   public int getEvaluationOrder() {
      return this.e;
   }

   public void setEvaluationOrder(int value) {
      this.e = value;
   }
}
